<template name="accounts_buttons">
  {{#unless currentUser}}
    <button type="button" class="btn btn-primary accounts-buttons" id="accountsButtons">{{title}}</button>
  {{else}}
    <a href="/i" class="btn btn-primary accounts-buttons">{{title}}</a>
  {{/unless}}
</template>

<template name="accounts_links">
  {{#if currentUser}}
    {{> Template.contentBlock}}
  {{else}}
    <ul class="navbar-nav">
      <li class="nav-item">
        <a class="nav-icon" href="#" id="accountsLinksLogin">登录</a>
      </li>
      <li class="nav-item">
        <a class="nav-icon" href="#" id="accountsLinksRegister">注册</a>
      </li>
    </ul>
  {{/if}}
</template>
